﻿/**************************
 * Author: Khangnv6b
 * Date: 28/03/2013
 * Module: Manage Group
 * Project: OFB
 **************************/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OFB.Domain;

namespace OFB.BLL.Repository
{

    /// <summary>
    /// Interface define all logic method of Group
    /// </summary>
    public interface IGroupBLL
    {
        ICollection<Group> FindAll(int startRow, int maxRow, out int totalRow);
        ICollection<Group> Filter(bool? status, int startRow, int maxRow, out int totalRow, string groupName, string groupId, string searchString);
        bool IsUsed(int groupId);
        int CreateGroup(string groupName, string description);
        Group GetByGroupId(int groupId);
        int UpdateGroup(int groupId ,string groupName, string description);
        int ChangeStatus(int groupId);
        Group SearchByGroupName(string groupName);
    }
}
